package com.ricky04.command;

import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * 容器启动完毕
 */
@Component
@Order(2)
//数字越小越先执行
public class MyCommandLiner implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        System.out.println("嗨，我的容器已经启动完毕了呢");
    }
}
